import axios from "axios"
//引入Vue核心库
import Vue from 'vue'
//引入Vuex
import Vuex from 'vuex'
//引用Vuex
Vue.use(Vuex)
export default {
    namespaced: true,
    actions: {
      
    },

    mutations: {
       
    },
     getters : {
	    bigSum(state){
	    	return state.sum * 10
	    }
    },

    state: {
        option1Data:{
                backgroundColor: ' rgba(11, 21, 57)',
                color: ['#5087ec', '#85d0dc', '#70b07a', '#f2bd42'],
                title: {
                    top: 10,
                    left: 10,
                    text: '1号稠油联合处理站',
                    textStyle: {
                        color: '#6DA7F0',
                        fontSize: 17
                    }
                },
                
                // dataZoom: {
                //     type: 'slider',
                //     show: true,
                //     startValue: 0,
                //     endValue: 7,
                //     xAxisIndex: [0]
                // },
                xAxis: {
                    axisLabel: {
                        color: '#fff'
                    },
                    data: ['07/16', '07/17', '07/18', '07/19', '07/20', '07/21']
                },
                series: [
                    {
                        name: '常规正相浓度',
                        type: 'line',
                        data: [60, 80, 88, 90, 96, 90],
                        label: {
                            show: true,
                            color: '#5087ec'
                            // formatter: '{c} %'
                        }
                    },
                    {
                        name: '常规反相浓度',
                        type: 'line',
                        data: [60, 61, 60, 65, 66, 58],
                        label: {
                            show: true,
                            color: '#85d0dc'
                            // formatter: '{c} %'
                        }
                    },
                    {
                        name: 'SAGD预处理剂浓度',
                        type: 'line',
                        data: [102, 102, 100, 100, 106, 100],
                        label: {
                            show: true,
                            color: '#70b07a'
                            // formatter: '{c} %'
                        }
                    },
                    {
                        name: 'SAGD正相浓度',
                        type: 'line',
                        data: [112, 132, 140, 120, 136, 140],
                        label: {
                            show: true,
                            color: '#f2bd42'
                            // formatter: '{c} %'
                        }
                    }
                ]
            }
    }
}